package sebastiankerckhof.scene;

import java.util.List;

import sebastiankerckhof.render.raytrace.Hit;
import sebastiankerckhof.render.raytrace.Ray;
import sebastiankerckhof.structure.Triangle;

public class Mesh implements Surface{

	public final Triangle[] triangles;
	
	public Mesh(int triangles){
		this.triangles = new Triangle[triangles];
	}
	
	public Mesh(Triangle[] triangles){
		this.triangles = triangles;
	}
	
	public Mesh(List<Triangle> triangles){
		this((Triangle[]) triangles.toArray(new Triangle[]{}));
	}
	
	@Override
  public boolean hit(Ray r, float t0, float t1, Hit hr) {
	  // TODO Auto-generated method stub
	  return false;
  }

	@Override
  public void bbox() {
	  // TODO Auto-generated method stub
	  
  }
	

}
